package com.gkey.demo.file;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.gkey.base.web.BaseController;
import com.gkey.cache.base.DynParameter;


@Controller
@RequestMapping(value="/dyn")
public class DynController extends BaseController {
	
	@Autowired
	protected DynParameter dynParameter;
	
	@RequestMapping
	public String index(HttpServletRequest request, HttpServletResponse response, Model model){
		
		model.addAttribute("a", dynParameter.getTempFilePath());
		model.addAttribute("b", dynParameter.getLocalFilePath());
		model.addAttribute("c", dynParameter.getShowFilePath());
		model.addAttribute("d", dynParameter.getDownFilePath());
		return "dyn";
	}

	
	
	
}
